package com.nine.demo.dto;

import com.nine.demo.entity.UserInfo;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author nine
 * @version 1.0
 * @description TODO
 * @date 2024-08-08 22:59
 */
@Data
public class UserInfoDto {

	private Integer id;

	private String nickname;

	private String password;

	private String sex;

	private String phone;

	private String email;

	private String address;

	public UserInfo convert() {
		UserInfo userInfo = new UserInfo();
		BeanUtils.copyProperties(this, userInfo);
		return userInfo;
	}
}
